//
//  OperationView.m
//  FMRecordVideo
//
//  Created by 高波 on 2019/4/17.
//  Copyright © 2019 SF. All rights reserved.
//

#import "OperationView.h"

@interface OperationView()

@property (weak, nonatomic) IBOutlet UIButton *back;
@property (weak, nonatomic) IBOutlet UIButton *cut;
@property (weak, nonatomic) IBOutlet UIButton *sure;


@end

@implementation OperationView

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    self.back.layer.cornerRadius = 35.0f;
    self.back.clipsToBounds = YES;

    self.cut.layer.cornerRadius = 35.0f;
    self.cut.clipsToBounds = YES;

    self.sure.layer.cornerRadius = 35.0f;
    self.sure.clipsToBounds = YES;
    
}

- (IBAction)back:(id)sender {
    if ([self.delegate respondsToSelector:@selector(operationBackWithType:)]) {
        [self.delegate operationBackWithType: self.type];
    }
}

- (IBAction)cut:(id)sender {
    if ([self.delegate respondsToSelector:@selector(operationCutWithType:)]) {
        [self.delegate operationCutWithType: self.type];
    }
}

- (IBAction)sure:(id)sender {
    if ([self.delegate respondsToSelector:@selector(operationSureWithType:)]) {
        [self.delegate operationSureWithType: self.type];
    }
}



@end
